<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/10/29 0029
 * Time: 16:58
 */

namespace App\Pool;

use Hyperf\Contract\ConnectionInterface;

class MyConnection implements ConnectionInterface
{
    /**
     * Get the real connection from pool.
     */
    public function getConnection()
    {

    }

    /**
     * Reconnect the connection.
     */
    public function reconnect(): bool
    {
        return true;
    }

    /**
     * Check the connection is valid.
     */
    public function check(): bool
    {
        return true;
    }

    /**
     * Close the connection.
     */
    public function close(): bool
    {
        return true;
    }

    /**
     * Release the connection to pool.
     */
    public function release(): void
    {

    }
}
